package com.yangchoi.jetpackcompose.ui.widget.component

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp

@Composable
fun DefaultLine(
    horizontalDp: Dp = 0.dp,
    lineHeightDp: Dp = 1.dp,
    verticalDp: Dp = 0.dp,
    bgColor: Color = Color(0xffcccccc),
    alpha: Float = 0.2f
){
    Spacer(modifier = Modifier.padding(horizontal = horizontalDp, vertical = verticalDp).fillMaxWidth().height(lineHeightDp).background(color = bgColor.copy(alpha = alpha)))
}